package com.nfit.shopweb.mapper;

import com.nfit.shopmodel.dto.product.ProductDto;

import com.nfit.shopmodel.entity.product.Product;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * ClassName:ProductMapper
 * Package:com.nfit.shopweb.mapper
 * Description
 *
 * @Author L
 * @Create 2024/12/17 10:58
 */
@Mapper
public interface ProductMapper {
    List<Product> page(ProductDto productDto);

    void save(Product product);

    /**
     * 根据商品id查询商品信息
     * @param id 商品id
     */
    Product findById(Long id);

    void update(Product product);

    void delete(Long id);
}
